import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class Imagedetail extends StatelessWidget {
  String _imgurl;

  Imagedetail(this._imgurl);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black87,
      // appBar: AppBar(title: Center(child: Text("图片详情"),),)
      body: Center(
        child: GestureDetector(
          onTap: (){
            Navigator.pop(context);
          },
            child: Hero(
                tag: _imgurl,
                child: Image.network(_imgurl))
        ),
      ),
    );
  }
}
